<?php echo $this->fetch('header.html'); ?>
	<div class="row">
    <div class="span12"> 
     <?php echo $this->fetch('weixin_menu/nav.html'); ?>
      <table class='table table-bordered' width='100%'>
        <thead>
        <tr>
          <th>id</th>
          <th>名称</th>
          <th>类型</th>
          <th>排序</th>
          <th>操作</th>
        </tr>
        </thead>
        <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
        <tr>
          <td><?php echo $this->_var['c']['id']; ?></td>
          <td><?php echo $this->_var['c']['title']; ?></td>
          <td><?php echo $this->_var['w_type_list'][$this->_var['c'][w_type]]; ?></td>
          <td><?php echo $this->_var['c']['orderindex']; ?></td>
          <td>[<a href="<?php echo $this->_var['appadmin']; ?>?m=weixin_menu&a=add&id=<?php echo $this->_var['c']['id']; ?>&wid=<?php echo $_GET['wid']; ?>">编辑</a>] [<a href="javascript:;" class="delete" url="<?php echo $this->_var['appadmin']; ?>?m=weixin_menu&a=delete&id=<?php echo $this->_var['c']['id']; ?>&wid=<?php echo $_GET['wid']; ?>">删除</a>]</td>
        </tr>
        <?php if ($this->_var['c']['child']): ?>
        <?php $_from = $this->_var['c']['child']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'cc');if (count($_from)):
    foreach ($_from AS $this->_var['cc']):
?>
        <tr>
          <td><?php echo $this->_var['cc']['id']; ?></td>
          <td>|__<?php echo $this->_var['cc']['title']; ?></td>
          <td><?php echo $this->_var['w_type_list'][$this->_var['cc'][w_type]]; ?></td>
          <td><?php echo $this->_var['cc']['orderindex']; ?></td>
          <td>[<a href="<?php echo $this->_var['appadmin']; ?>?m=weixin_menu&a=add&id=<?php echo $this->_var['cc']['id']; ?>&wid=<?php echo $_GET['wid']; ?>">编辑</a>]
           [<a href="javascript:;" class="delete" url="<?php echo $this->_var['appadmin']; ?>?m=weixin_menu&a=delete&id=<?php echo $this->_var['cc']['id']; ?>&wid=<?php echo $_GET['wid']; ?>">删除</a>]</td>
        </tr>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        <?php endif; ?>
        
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
      </table>
      <div><?php echo $this->_var['pagelist']; ?></div>
    </div>
  </div>
 


<?php echo $this->fetch('footer.html'); ?>